<el-dialog title="新增领用归还" v-model="addUseReturnFormDialog">
  <el-form  ref="addUseReturnForm" :label-width="dialogLabelWidth" :model="addUseReturnForm">

    <el-row>
      <el-col :span="22">
        <el-form-item label="物品名称" prop="name">
          <el-input v-model="addUseReturnForm.name" placeholder="请填写物品名称"></el-input>
        </el-form-item>
      </el-col>
    </el-row>

    <el-row>
      <el-col :span="11">
        <el-form-item label="领单号" prop="use_order">
          <el-input v-model="addUseReturnForm.use_order" placeholder="请填写领单号"></el-input>
        </el-form-item>
      </el-col>
      <el-col :span="11">
        <el-form-item label="资产编码" prop="asset_num">
          <el-select  v-model="addUseReturnForm.asset_num" placeholder="资产编码">
            <el-option v-for="item in StyType" :label="item.label" :value="item.value"></el-option>
          </el-select>
        </el-form-item>
      </el-col> 
    </el-row>

    <el-row>
      <el-col :span="11">
        <el-form-item label="物品分类" prop="type">
          <el-select  v-model="addUseReturnForm.type" placeholder="物品分类">
            <el-option v-for="item in StyType" :label="item.label" :value="item.value"></el-option>
          </el-select>
        </el-form-item>
      </el-col> 
    </el-row>

    <el-row>
      <el-col :span="22">
        <el-form-item label="用途" prop="purpose">
          <el-input v-model="addUseReturnForm.purpose" placeholder="请填写物品用途"></el-input>
        </el-form-item>
      </el-col>
    </el-row>

    <el-row>
      <el-col :span="11">
        <el-form-item label="物品单位" prop="unit">
          <el-input v-model="addUseReturnForm.unit" placeholder="请填写物品单位(个、台)" ></el-input>
        </el-form-item>
      </el-col>
      <el-col :span="11">
        <el-form-item label="物品单价" prop="price">
          <el-input v-model="addUseReturnForm.price" placeholder="请填写物品单价888" ></el-input>
        </el-form-item>
      </el-col>
    </el-row>

    <el-row>
      <el-col :span="11">
        <el-form-item label="领用数量" prop="use_num">
          <el-input-number v-model="addUseReturnForm.use_num" :min="1" :max="99"></el-input-number>
        </el-form-item>
      </el-col>
      <el-col :span="11">
        <el-form-item label="物品金额" prop="sum">
          <el-input v-model="addUseReturnForm.sum" placeholder="请填写物品金额8888" ></el-input>
        </el-form-item>
      </el-col>
    </el-row>

    <el-row>
      <el-col :span="22">
        <el-form-item label="物品规格" prop="spec">
          <el-input v-model="addUseReturnForm.spec" placeholder="尺寸/颜色/型号/品牌" ></el-input>
        </el-form-item>
      </el-col>
    </el-row>

    <el-row>
      <el-col :span="11">
        <el-form-item label="领用人" prop="use_name">
          <el-input v-model="addUseReturnForm.use_name" placeholder="填写领用人" ></el-input>
        </el-form-item>
      </el-col>
      <el-col :span="11">
        <el-form-item label="领用日期" prop="use_time2">
          <el-date-picker v-model="addUseReturnForm.use_time2" type="datetime" placeholder="选择领用日期" 
           style="max-width:200px;" :editable="false" @change="useTime">
          </el-date-picker>
        </el-form-item>
      </el-col>
    </el-row>

<!--     <el-row>
      <el-col :span="11">
        <el-form-item label="归还数量" prop="return_num">
          <el-input-number v-model="addUseReturnForm.return_num" :min="0" :max="99"></el-input-number>
        </el-form-item>
      </el-col>
      <el-col :span="11">
        <el-form-item label="归还日期" prop="return_time2">
          <el-date-picker v-model="addUseReturnForm.return_time2" type="datetime" placeholder="选择领用日期" 
           style="max-width:200px;" :editable="false" @change="returnTime">
          </el-date-picker>
        </el-form-item>
      </el-col>
    </el-row> -->

    <el-row>
      <el-col :span="22">
        <el-form-item label="备注" prop="remark">
          <el-input type="textarea" :rows="4" v-model="addUseReturnForm.remark" placeholder="请填写活动备注"></el-input>
        </el-form-item>
      </el-col>
    </el-row>
  </el-form>

  <div slot="footer" class="dialog-footer">
   <el-button @click="addUseReturnFormDialog=false">取 消</el-button>
   <el-button type="primary" v-show="!addUseReturnFormSubmitStatus" @click="addUseReturnSubmit(addUseReturnForm)">确 定</el-button>
   <el-button type="primary" v-show="addUseReturnFormSubmitStatus" :loading="true" >添加中</el-button>
  </div>

</el-dialog>
